package org.itboys.mobile.dto.dynamic;

import org.itboys.admin.dto.lasted.SundayUploadDto;
import org.itboys.mobile.dto.common.MobileBaseDto;

import java.util.List;

/**
 * 作者：jiangxiong
 * 日期：2017年4月26日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_移动端（通用）_动态_DTO。如果属性不够，请自行填充
 */
public class SundayDynamicDto extends MobileBaseDto {

    private Integer type;//类别:2-达人试用,3-本地爱购
    private Long memberId;//用户id
    private String memberName;//用户昵称
    private String memberImage;//用户昵称
    private String content;//动态内容
    //本地爱购字段
  //  private Long cityId;// 城市ID
    private String cityName;//城市名称；
    private Integer dzNumber;//点赞数
    private Integer plNumber;//评论数量
    //dto需要字段
    //商品集合
    private List<SundayDynamicProductDto> products;
    //评论集合
    private List<SundayDynamicOperateDto> comments;
    //图片集合
    //private List<SundayUploadDto> images;
    private List<String> images;
    //是否收藏。针对人，非动态
   // private Integer isCollection;//是否收藏
    //是否点赞。
    private Integer isDz;//是否点赞
    public SundayDynamicDto() {
    }

    public SundayDynamicDto(long id, String createTime, String createDate) {
        super(id, createTime, createDate);
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMemberImage() {
        return memberImage;
    }

    public void setMemberImage(String memberImage) {
        this.memberImage = memberImage;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }



    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Integer getDzNumber() {
        return dzNumber;
    }

    public void setDzNumber(Integer dzNumber) {
        this.dzNumber = dzNumber;
    }

    public Integer getPlNumber() {
        return plNumber;
    }

    public void setPlNumber(Integer plNumber) {
        this.plNumber = plNumber;
    }

    public List<SundayDynamicProductDto> getProducts() {
        return products;
    }

    public void setProducts(List<SundayDynamicProductDto> products) {
        this.products = products;
    }

    public List<SundayDynamicOperateDto> getComments() {
        return comments;
    }

    public void setComments(List<SundayDynamicOperateDto> comments) {
        this.comments = comments;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

   /* public Integer getIsCollection() {
        return isCollection;
    }

    public void setIsCollection(Integer isCollection) {
        this.isCollection = isCollection;
    }*/

    public Integer getIsDz() {
        return isDz;
    }

    public void setIsDz(Integer isDz) {
        this.isDz = isDz;
    }

    public String getTypeStr(){
        String typeStr= "";
        if(type==null)return typeStr;

        switch (type) {
            case 2:
                typeStr="达人试用";
                break;
            case 3:
                typeStr="本地爱购";
                break;

            default:
                break;
        }
        return typeStr;
    }
}
